package cn.jasonone.test.controller;

import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ResourceBundle;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import cn.jasonone.jasonfx.annotation.FXBind;
import cn.jasonone.jasonfx.annotation.FXController;
import cn.jasonone.jasonfx.annotation.FXWindow;
import cn.jasonone.jasonfx.entity.JFXBaseController;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.control.TextField;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author Jason
 * @Date 2020/1/18 23:18
 * @Version 1.0
 */
@FXController
@FXWindow(main = true)
@Slf4j
@Data
public class MainController extends JFXBaseController implements Initializable {
//	@FXBind
//	private boolean checkBox;
//	@FXBind({"#checkBox","#checkBox1"})
//	private List<String> list;
//	@FXML
//	private TextField text;
	@FXBind
	@Setter
	private Student student;

	@Override
	public void initialize(URL location, ResourceBundle resources) {
	}

	@FXML
	public void onClick(ActionEvent e) {
		log.debug("复选框测试:{}", student);
		student.setName("李四");
		student.setAge("100");
	}
}
